﻿using JESAI.Biz.Data.Enums;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JESAI.Application.Abstractions.Sys.Dtos
{
    public class OnlineFieldInput
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public string? Id { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        public bool IsValid { get; set; }

        /// <summary>
        /// 字段中文名称
        /// </summary>
        public string FieldCnName { get; set; }

        /// <summary>   
        /// 字段英文名称
        /// </summary>
        public string FieldEnName { get; set; }

        /// <summary>
        /// 控件类型
        /// </summary>
        public ControlType FiledType { get; set; }

        /// <summary>
        /// 是否排序
        /// </summary>
        public bool IsOrder { get; set; }

        /// <summary>
        /// 是否查询
        /// </summary>
        public bool IsSearch { get; set; }

        /// <summary>
        /// 列表是否显示
        /// </summary>
        public bool IsTableShow { get; set; }

        /// <summary>
        /// 表单是否显示
        /// </summary>
        public bool IsFormShow { get; set; }

        /// <summary>
        /// 在线表单ID
        /// </summary>
        public string? OnlineInfoId { get; set; }
        /// <summary>
        /// 是否必填
        /// </summary>
        public bool IsRequired { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int SortNum { get; set; }
    }
}
